all: clean CobolUnit 

	
CobolUnit: 
	cobc -std=mf -o libCOBOLUnit -I $(CBU_COPY_PATH) -b  $(CBU_PGM)/CBUP0001.cbl $(CBU_PGM)/CBUP0002.cbl $(CBU_PGM)/CBUP0003.cbl $(CBU_PGM)/CBUP0004.cbl $(CBU_PGM)/CBUP0005.cbl
	mv *.so lib/


clean:
	rm -rf *.so
	rm -rf lib/tests/
	rm -rf lib/
	rm -rf lib/copy/
	mkdir lib/
	mkdir lib/copy		
	mkdir lib/tests	

